package lib.self.ex.interfaces;

import lib.self.network.bean.NetworkListener;
import lib.self.network.bean.NetworkRequest;

/**
 * description: 网络操作
 * author: Steven Xiao
 * date: 2017/4/24
 */
public interface INetwork extends NetworkListener {

    void exeNetworkRequest(int tag, NetworkRequest request);

    void exeNetworkRequest(int tag, NetworkRequest request, NetworkListener listener);

    /**
     * 取消所有网络任务
     */
    void cancelAllNetworkRequest();

    /**
     * 取消指定网络任务
     */
    void cancelNetworkRequest(int tag);
}
